<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>表单页面</title>
    <link rel="stylesheet" href="/static/component/pear/css/pear.css" />
    <style>
          .userp_1{
            position: relative;
        }
        .userp_2{
            position:absolute;
            right:20px;
            top:8px;
            font-weight: bold;
        }
    </style>
</head>

<body>
    <form class="layui-form" id="formId">
        <div class="mainBox">
            <div class="main-container">
                <div class="layui-form-item">
                    <label class="layui-form-label">申请人</label>
                    <div class="layui-input-block" style="padding-top:5px">
                        <img src="{$msg.umsg.head_img}" class="layui-nav-img">
                        <span>{$msg.umsg.nickname}
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">反馈内容</label>
                    <div class="layui-input-block ">
                        <textarea  autocomplete="off" disabled
                            class="layui-textarea" style="background-color:#eee;">{$msg.content}</textarea>
                    </div>
                </div>
                
                <div class="layui-form-item">
                    <label class="layui-form-label">处理结果</label>
                    <div class="layui-input-block">
                        <input type="radio" name="status" value="0" title="无操作" checked >
                        <input type="radio" name="status" value="1" title="已处理">
                        <!--<input type="radio" name="status" value="2" title="已处理（退款）">-->
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">备注信息</label>
                    <div class="layui-input-block">
                        <textarea type="text" name="sh_remark" value="{$msg.remark|default='0'}" autocomplete="off" placeholder="请输入备注信息"
                            class="layui-textarea"></textarea>
                    </div>
                </div>
            </div>
        </div>
        <div class="bottom">
            <div class="button-container">
                <button type="submit" class="pear-btn pear-btn-primary pear-btn-sm" lay-submit=""
                    lay-filter="form-save">
                    <i class="layui-icon layui-icon-ok"></i>
                    提交
                </button>
                <button type="reset" class="pear-btn pear-btn-sm">
                    <i class="layui-icon layui-icon-refresh"></i>
                    重置
                </button>
            </div>
        </div>
    </form>
    <script src="/static/user/js/jquery.min.js"></script>
    <script src="/static/component/layui/layui.js"></script>
    <script src="/static/component/pear/pear.js"></script>
    <script>
        layui.use(['form', 'jquery', 'iconPicker'], function () {
            let form = layui.form;
            let $ = layui.jquery;

   


            form.on('submit(form-save)', function (data) {
                var data = $("#formId");
                postDatai("{:url('basic/clItemup')}?id={$Request.get.id}", data).then(function (res) {
                    if (res.code == 200) {
                        layer.msg(res.message, {
                            icon: 1,
                            time: 1000
                        }, function () {
                            parent.layer.close(parent.layer.getFrameIndex(window
                                .name)); //关闭当前页
                            parent.layui.table.reload("tableId");
                        });
                    } else {
                        layer.msg(res.message, {
                            icon: 2,
                            time: 1000
                        });
                    }
                });
                return false;
            });
        })
    </script>
    {include file="base/unitjs"}
</body>

</html>